package com.erms.lab.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.erms.lab.mapper.SysConferenceHostingMapper;
import com.erms.lab.domain.SysConferenceHosting;
import com.erms.lab.service.ISysConferenceHostingService;
import com.erms.common.core.text.Convert;

/**
 * 承办大型会议情况Service业务层处理
 * 
 * @author guo
 * @date 2020-03-22
 */
@Service
public class SysConferenceHostingServiceImpl implements ISysConferenceHostingService 
{
    @Autowired
    private SysConferenceHostingMapper sysConferenceHostingMapper;

    /**
     * 查询承办大型会议情况
     * 
     * @param hostId 承办大型会议情况ID
     * @return 承办大型会议情况
     */
    @Override
    public SysConferenceHosting selectSysConferenceHostingById(Long hostId)
    {
        return sysConferenceHostingMapper.selectSysConferenceHostingById(hostId);
    }

    /**
     * 查询承办大型会议情况列表
     * 
     * @param sysConferenceHosting 承办大型会议情况
     * @return 承办大型会议情况
     */
    @Override
    public List<SysConferenceHosting> selectSysConferenceHostingList(SysConferenceHosting sysConferenceHosting)
    {
        return sysConferenceHostingMapper.selectSysConferenceHostingList(sysConferenceHosting);
    }

    /**
     * 新增承办大型会议情况
     * 
     * @param sysConferenceHosting 承办大型会议情况
     * @return 结果
     */
    @Override
    public int insertSysConferenceHosting(SysConferenceHosting sysConferenceHosting)
    {
        return sysConferenceHostingMapper.insertSysConferenceHosting(sysConferenceHosting);
    }

    /**
     * 修改承办大型会议情况
     * 
     * @param sysConferenceHosting 承办大型会议情况
     * @return 结果
     */
    @Override
    public int updateSysConferenceHosting(SysConferenceHosting sysConferenceHosting)
    {
        return sysConferenceHostingMapper.updateSysConferenceHosting(sysConferenceHosting);
    }

    /**
     * 删除承办大型会议情况对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteSysConferenceHostingByIds(String ids)
    {
        return sysConferenceHostingMapper.deleteSysConferenceHostingByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除承办大型会议情况信息
     * 
     * @param hostId 承办大型会议情况ID
     * @return 结果
     */
    @Override
    public int deleteSysConferenceHostingById(Long hostId)
    {
        return sysConferenceHostingMapper.deleteSysConferenceHostingById(hostId);
    }
}
